projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b81322
)
No popup menu on the button
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 31 Jan 2012 05:39:00 +0000
(
00:39
-0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 14 Feb 2012 21:36:50 +0000
(16:36 -0500)
gtk/gtkcolorswatch.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcolorswatch.c
b/gtk/gtkcolorswatch.c
index bf5edf654dbd446effcf033fbe287ab3350edf7a..4211f60a97d6071a98c0f11975788bc2cc450f34 100644
(file)
--- a/
gtk/gtkcolorswatch.c
+++ b/
gtk/gtkcolorswatch.c
@@
-451,7
+451,8
@@
swatch_button_press (GtkWidget *widget,
gtk_widget_grab_focus (GTK_WIDGET (swatch));
- if (gdk_event_triggers_context_menu ((GdkEvent *) event))
+ if (gdk_event_triggers_context_menu ((GdkEvent *) event) &&
+ swatch->priv->has_color)
{
do_popup (widget, event);
return TRUE;